package com.lee.weatherdemo.util;

import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;

/**
 * 修改者：汪政
 * 修改时间：2017/8/31 16:30
 * 修改描述：删除多余代码，简化这个类
 */
public class HttpUtils {
    
    public static void sendOkHttpRequest(String address, Callback callback){
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(address).build();
        client.newCall(request).enqueue(callback);
    }
}